Use requestAnimationFrame instead of setInterval, save cpu cycles for animation#9
Use requestAnimationFrame instead of setInterval, save cpu cycles for animation#9Tin wants to merge 1 commit intojoehewitt:masterfrom
Conversation
… animation when this api is available.
|
another option, which combines both (requstAnimationFrame and setInteral) is described by Joe Lambert: |
|
@rsaccon the code in question can also be found/forked here: https://gist.github.com/1002116 It offers the performance improvements of requestAnimationFrame (when available) but doesn't require a code refactor to explicitly support it. |
|
A few feedbacks: adding this really slows down the scrollability at least on Android devices. After a bit of investigations, I :
It looks to works as it used to be, a little bit better on Android ( maybe because of 1000 / 16 instead of 0 as period ? )
Snif snif |
|
We are facing serious performance issue in android too, especially the honeycomb on tablet. We need a big breakthrough, but seems we are blocked by lacking of hardware acceleration for css3 transformation. |
|
my solution is to not support android ;) |
Use requestAnimationFrame instead of setInterval, save cpu cycles for animation when this api is available. This helps slowly android browsers a bit.